<!doctype html>



  


<html class="theme-next pisces use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  

  

  

  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.1" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="Hexo, NexT" />








  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?v=5.1.1" />






<meta name="description" content="1.下载     based on Java81https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.4.3.tar.gz 2.解压1tar -zxvf ***.tar.gz 3.1./elasticsearch -d 4.端口默认 9200     http://localhost:9200    You Kno">
<meta property="og:type" content="article">
<meta property="og:title" content="ElasticSearch简单教程">
<meta property="og:url" content="http://yoursite.com/2017/06/20/elasticsearch/es简单教程/index.html">
<meta property="og:site_name" content="Tissan">
<meta property="og:description" content="1.下载     based on Java81https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.4.3.tar.gz 2.解压1tar -zxvf ***.tar.gz 3.1./elasticsearch -d 4.端口默认 9200     http://localhost:9200    You Kno">
<meta property="og:image" content="http://yoursite.com/uploads/elasticsearch/1/es_1.png">
<meta property="og:image" content="http://yoursite.com/uploads/elasticsearch/3/es_3_2.png">
<meta property="og:image" content="http://yoursite.com/uploads/elasticsearch/3/es_3_3.png">
<meta property="og:image" content="http://yoursite.com/uploads/elasticsearch/3/es_3_4.png">
<meta property="og:image" content="http://yoursite.com/uploads/elasticsearch/3/es_3_5.png">
<meta property="og:updated_time" content="2017-12-17T08:39:23.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="ElasticSearch简单教程">
<meta name="twitter:description" content="1.下载     based on Java81https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.4.3.tar.gz 2.解压1tar -zxvf ***.tar.gz 3.1./elasticsearch -d 4.端口默认 9200     http://localhost:9200    You Kno">
<meta name="twitter:image" content="http://yoursite.com/uploads/elasticsearch/1/es_1.png">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Pisces',
    sidebar: {"position":"left","display":"post","offset":12,"offset_float":0,"b2t":false,"scrollpercent":false},
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: 'undefined',
      author: 'Java程序员'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://yoursite.com/2017/06/20/elasticsearch/es简单教程/"/>





  <title>ElasticSearch简单教程 | Tissan</title>
  














</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Tissan</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            关于
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2017/06/20/elasticsearch/es简单教程/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="罗天翔">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/uploads/avatar.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Tissan">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">ElasticSearch简单教程</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2017-06-20T19:12:09+08:00">
                2017-06-20
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/elasticsearch/" itemprop="url" rel="index">
                    <span itemprop="name">elasticsearch</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
              <span class="post-comments-count">
              <span class="post-meta-divider">|</span>
              <span class="post-meta-item-icon">
                <i class="fa fa-comment-o"></i>
              </span>
              
                <a href="/2017/06/20/elasticsearch/es简单教程/#SOHUCS" itemprop="discussionUrl">
                  <span id="changyan_count_unit" class="post-comments-count hc-comment-count" data-xid="2017/06/20/elasticsearch/es简单教程/" itemprop="commentsCount"></span>
                </a>
              
            
          

          
          

          

          

          

        </div>
      </header>
    

    <div class="post-body" itemprop="articleBody">

      
      

      
        <p>1.下载     based on Java8<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.4.3.tar.gz</div></pre></td></tr></table></figure></p>
<p>2.解压<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">tar -zxvf ***.tar.gz</div></pre></td></tr></table></figure></p>
<p>3.<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">./elasticsearch -d</div></pre></td></tr></table></figure></p>
<p>4.端口默认 9200     <a href="http://localhost:9200" target="_blank" rel="external">http://localhost:9200</a>    You Know, for Search<br><img src="/uploads/elasticsearch/1/es_1.png" alt="结果"></p>
<p><a href="http://localhost:9200/city/schools/_search" target="_blank" rel="external">http://localhost:9200/city/schools/_search</a></p>
<p><a href="http://localhost:9200/schools/school" target="_blank" rel="external">http://localhost:9200/schools/school</a></p>
<p>索引Index 搜索Search 聚合Aggregation</p>
<p>下面 我们要对公司员工做一个管理的程序,首先我们要做的是存储每个员工的档案<br>存储数据的行为是索引<br>每个员工都是一个档案</p>
<p>rdb:db-&gt;table-&gt;row-&gt;column<br>es:index-&gt;type-&gt;document-&gt;field</p>
<p>es包含多个索引Index<br>每个索引包含多个类型Type<br>每个类型包含多个文档Document<br>每个文档包含多个字段field</p>
<h4 id="存储-PUT-使用RequestBody将数据存储"><a href="#存储-PUT-使用RequestBody将数据存储" class="headerlink" title="存储: PUT 使用RequestBody将数据存储"></a>存储: PUT 使用RequestBody将数据存储</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div></pre></td><td class="code"><pre><div class="line">localhost:9200/megacorp/employee/1  PUT   1是员工id</div><div class="line">&#123;</div><div class="line">    &quot;first_name&quot; : &quot;John&quot;,</div><div class="line">    &quot;last_name&quot; : &quot;Smith&quot;,</div><div class="line">    &quot;age&quot; : 25,</div><div class="line">    &quot;about&quot; : &quot;I love to go rock climbing&quot;, &quot;interests&quot;: [ &quot;sports&quot;, &quot;music&quot; ]</div><div class="line">&#125;</div></pre></td></tr></table></figure>
<p><img src="/uploads/elasticsearch/3/es_3_2.png" alt="结果"></p>
<h4 id="查询-byId-url中指出-index-type-id"><a href="#查询-byId-url中指出-index-type-id" class="headerlink" title="查询: byId    url中指出 index/type/id"></a>查询: byId    url中指出 index/type/id</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">localhost:9200/megacorp/employee/1     GET</div></pre></td></tr></table></figure>
<p><img src="/uploads/elasticsearch/3/es_3_3.png" alt="结果"></p>
<h4 id="查询-简单搜索-默认返回index-type-下前10条记录"><a href="#查询-简单搜索-默认返回index-type-下前10条记录" class="headerlink" title="查询:简单搜索 默认返回index/type/下前10条记录"></a>查询:简单搜索 默认返回index/type/下前10条记录</h4><figure class="highlight plain"><figcaption><span>模糊查询</span></figcaption><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">localhost:9200/megacorp/employee/_search     GET</div></pre></td></tr></table></figure>
<p><img src="/uploads/elasticsearch/3/es_3_4.png" alt="结果"></p>
<h4 id="查询-姓氏中包含Smith"><a href="#查询-姓氏中包含Smith" class="headerlink" title="查询:姓氏中包含Smith"></a>查询:姓氏中包含Smith</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">localhost:9200/megacorp/employee/_search?q=last_name:Smith     GET</div></pre></td></tr></table></figure>
<p><img src="/uploads/elasticsearch/3/es_3_5.png" alt="结果"></p>
<h4 id="查询-添加过滤器"><a href="#查询-添加过滤器" class="headerlink" title="查询:添加过滤器"></a>查询:添加过滤器</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div></pre></td><td class="code"><pre><div class="line">GET localhost:9200/megacorp/employee/_search </div><div class="line">&#123;</div><div class="line">    &quot;query&quot; : &#123; </div><div class="line">          &quot;filtered&quot; : &#123;</div><div class="line">                &quot;filter&quot; : &#123; </div><div class="line">                    &quot;range&quot; : &#123;</div><div class="line">                           &quot;age&quot; : &#123; &quot;gt&quot; : 30 &#125; </div><div class="line">                     &#125;</div><div class="line">                 &#125;,</div><div class="line">                &quot;query&quot; : &#123;</div><div class="line">                   &quot;match&quot; : &#123;</div><div class="line">                       &quot;last_name&quot; : &quot;smith&quot;</div><div class="line">                       &#125; </div><div class="line">                 &#125;</div><div class="line">          &#125;</div><div class="line">    &#125;</div><div class="line">&#125;</div></pre></td></tr></table></figure>
<h4 id="查询-高亮搜索"><a href="#查询-高亮搜索" class="headerlink" title="查询:高亮搜索"></a>查询:高亮搜索</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div></pre></td><td class="code"><pre><div class="line">GET localhost:9200/megacorp/employee/_search </div><div class="line">&#123;</div><div class="line">    &quot;query&quot; : &#123; </div><div class="line">          &quot;filtered&quot; : &#123;</div><div class="line">                &quot;filter&quot; : &#123; </div><div class="line">                    &quot;range&quot; : &#123;</div><div class="line">                           &quot;age&quot; : &#123; &quot;gt&quot; : 30 &#125; </div><div class="line">                     &#125;</div><div class="line">                 &#125;,</div><div class="line">                &quot;query&quot; : &#123;</div><div class="line">                   &quot;match&quot; : &#123;</div><div class="line">                       &quot;last_name&quot; : &quot;smith&quot;</div><div class="line">                       &#125; </div><div class="line">                 &#125;</div><div class="line">          &#125;</div><div class="line">    &#125;</div><div class="line">&#125;</div></pre></td></tr></table></figure>

      
    </div>

    <div>
      
        

      
    </div>

    <div>
      
        
  <div style="padding: 10px 0; margin: 20px auto; width: 90%; text-align: center;">
    <div>坚持原创技术分享，您的支持将鼓励我继续创作！</div>
    <button id="rewardButton" disable="enable" onclick="var qr = document.getElementById('QR'); if (qr.style.display === 'none') {qr.style.display='block';} else {qr.style.display='none'}">
      <span>赏</span>
    </button>
    <div id="QR" style="display: none;">
      
        <div id="wechat" style="display: inline-block">
          <img id="wechat_qr" src="/uploads/wechat.png" alt="罗天翔 WeChat Pay"/>
          <p>微信打赏</p>
        </div>
      
      
        <div id="alipay" style="display: inline-block">
          <img id="alipay_qr" src="/uploads/ali.jpg" alt="罗天翔 Alipay"/>
          <p>支付宝打赏</p>
        </div>
      
    </div>
  </div>


      
    </div>

    <div>
      
        

      
    </div>

    <footer class="post-footer">
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2017/06/20/pattern/解释器模式/" rel="next" title="解释器模式">
                <i class="fa fa-chevron-left"></i> 解释器模式
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2017/06/20/pattern/观察者模式/" rel="prev" title="观察者模式">
                观察者模式 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          
  <div class="comments" id="comments">
    
      <div id="SOHUCS"></div>
    
  </div>


        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap" >
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="/uploads/avatar.jpg"
               alt="罗天翔" />
          <p class="site-author-name" itemprop="name">罗天翔</p>
           
              <p class="site-description motion-element" itemprop="description">一次就把事情做对.</p>
          
        </div>
        <nav class="site-state motion-element">

          
            <div class="site-state-item site-state-posts">
              <a href="/archives/">
                <span class="site-state-item-count">71</span>
                <span class="site-state-item-name">日志</span>
              </a>
            </div>
          

          
            
            
            <div class="site-state-item site-state-categories">
              <a href="/categories/index.html">
                <span class="site-state-item-count">14</span>
                <span class="site-state-item-name">分类</span>
              </a>
            </div>
          

          

        </nav>

        

        <div class="links-of-author motion-element">
          
            
              <span class="links-of-author-item">
                <a href="https://github.com/louiegit/" target="_blank" title="GitHub">
                  
                    <i class="fa fa-fw fa-github"></i>
                  
                  GitHub
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="" target="_blank" title="微信">
                  
                    <i class="fa fa-fw fa-wechat"></i>
                  
                  微信
                </a>
              </span>
            
          
        </div>

        
        

        
        

        


      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-4"><a class="nav-link" href="#存储-PUT-使用RequestBody将数据存储"><span class="nav-number">1.</span> <span class="nav-text">存储: PUT 使用RequestBody将数据存储</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#查询-byId-url中指出-index-type-id"><span class="nav-number">2.</span> <span class="nav-text">查询: byId    url中指出 index/type/id</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#查询-简单搜索-默认返回index-type-下前10条记录"><span class="nav-number">3.</span> <span class="nav-text">查询:简单搜索 默认返回index/type/下前10条记录</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#查询-姓氏中包含Smith"><span class="nav-number">4.</span> <span class="nav-text">查询:姓氏中包含Smith</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#查询-添加过滤器"><span class="nav-number">5.</span> <span class="nav-text">查询:添加过滤器</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#查询-高亮搜索"><span class="nav-number">6.</span> <span class="nav-text">查询:高亮搜索</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy; 
  <span itemprop="copyrightYear">2018</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">罗天翔</span>
</div>


<div class="powered-by">
  NBA & Code. What?
</div>

<div class="theme-info">
  主题 -
  <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
    NexT.Pisces
  </a>
</div>


        

        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.1"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.1"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.1.1"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.1"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.1"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.1"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.1"></script>



  


  




	





  





  





  




  
    <script type="text/javascript">
    (function(){
      var appid = 'cyt9ceIwz';
      var conf = 'c6226e2bfb7e9c65efc235736edc5074';
      var width = window.innerWidth || document.documentElement.clientWidth;
      if (width < 960) {
      window.document.write('<script id="changyan_mobile_js" charset="utf-8" type="text/javascript" src="https://changyan.sohu.com/upload/mobile/wap-js/changyan_mobile.js?client_id=' + appid + '&conf=' + conf + '"><\/script>'); } else { var loadJs=function(d,a){var c=document.getElementsByTagName("head")[0]||document.head||document.documentElement;var b=document.createElement("script");b.setAttribute("type","text/javascript");b.setAttribute("charset","UTF-8");b.setAttribute("src",d);if(typeof a==="function"){if(window.attachEvent){b.onreadystatechange=function(){var e=b.readyState;if(e==="loaded"||e==="complete"){b.onreadystatechange=null;a()}}}else{b.onload=a}}c.appendChild(b)};loadJs("https://changyan.sohu.com/upload/changyan.js",function(){
        window.changyan.api.config({appid:appid,conf:conf})});
      }
    })();
    </script>
    <script type="text/javascript" src="https://assets.changyan.sohu.com/upload/plugins/plugins.count.js"></script>
  




  





  

  

  

  

  

  

</body>
</html>
